<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=0">
    <title>Document</title>
</head>

<body>
    <script>
        //计算三个数字的大小，按从小到大顺序输出
        function count(a, b, c) {
            var temp;
            var str;
            if (a > b) {
                temp = a;
                a = b;
                b = temp;
            }
            if (b > c) {
                temp = b;
                b = c;
                c = temp;
            }
            if (a > b) {
                temp = a;
                a = b;
                b = temp;
            }
            src = '  ' + a + '  ' + b + '   ' + c + ' ';
            console.log(src);
            return src;

        }
        count(9, 7, 3)
    </script>
</body>

</html>